package com.shenglue.ssi.service;

import java.util.List;

import com.shenglue.ssi.domain.BuyInSettle;
import com.shenglue.ssi.domain.BuyInMain;
import com.shenglue.ssi.domain.User;

public interface BuyInSettleService {

	/**
	 * 查询某入库单的 所有 结账单信息
	 */
	public List<BuyInSettle> selectAllBuyInSettle( int buyInId );

	/**
	 * 增加入库结账单记录
	 */
	public boolean saveBuyInSettle( BuyInSettle BuyInSettle );

	/**
	 * 删除入库结账单记录
	 */
	public boolean deleteBuyInSettle( int buyInSettleId );

	/**
	 * 修改入库结账单记录
	 */
	public boolean updateBuyInSettle( BuyInSettle BuyInSettle );

	/**
	 * 为修改，根据 Id 查一条 入库结账单记录
	 */
	public BuyInSettle getOneBuyInSettleForUpdate( int buyInSettleId );
	
	/**
	 * 为计算结清情况，根据 buyInMainId 查一条 入库单主表 需要结账的额度（订单的总额）
	 */
	public float getOneBuyInMainNeedSettle( int buyInMainId );

	/**
	 * 为计算结清情况，根据 buyInMainId 查一条 入库单主表 已经结账的额度（结账单的总额）
	 */
	public float getOneBuyInMainHasSettle( int buyInMainId );

}
